import { request } from "@umijs/max";
//用户列表
export const getUserPage = (params: any) =>
  request(`/sysUser/admin-page`, {
    method: "POST",
    data: params,
  });
//删除用户
export const delUser = (id: string) =>
  request(`/sysUser/${id}`, {
    method: "DELETE",
  });

//修改用户状态
export const changeUserStatus = (params: { id: number; status: number }) =>
  request(`/sysUser/update`, {
    method: "PUT",
    data: params,
  });
